<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of PhotoService
 *
 * @author Desmond
 */
class PhotoService {
    //put your code here
    public function insert(TblPhoto $tbl_photo)
    {
        mysql_query("insert into tbl_photo(fb_id,pic,title,status,photo_group,created_datetime)values
            ('".$tbl_photo->getFb_id()."','".$tbl_photo->getPic()."','".$tbl_photo->getTitle()."','".$tbl_photo->getStatus()."','".$tbl_photo->getPhoto_group()."',
            now())")or die(mysql_error());
        
        $id=mysql_insert_id();
        return $id;
    }
}

?>
